package com.shgsh.platform.controller;

import com.shgsh.attribute.model.ActionData;
import com.shgsh.platform.service.ActionDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by jessy on 2015/8/8.
 */
@Controller
@RequestMapping("/plantform/action")
public class ActionDataController {
    Logger log = LoggerFactory.getLogger(ActionDataController.class);

    @Autowired
    ActionDataService actionDataService;

    @RequestMapping(value = "edit",method = RequestMethod.GET)
    public String edit(){
        /*ActionData ad = new ActionData();
        ad.setDescription("hh");
        ad.setEffect("tt");
        ad.setFeature("rr");
        ad.setRequire("qq");
        ad.setSection("1");
        actionDataService.save(ad);*/
        actionDataService.get("1");
        log.debug("request action form .");
        return "/platform/action/edit";
    }



}
